package org.xebia.roo.addon.openshift;

import com.openshift.express.client.IEmbeddableCartridge;

public abstract class CartridgeFactory {

	public static IEmbeddableCartridge getCartridge(EmbeddableCartridge cartridge){
		switch (cartridge) {
		
				case JENKINS:
					return IEmbeddableCartridge.JENKINS_14;
				case PHPMYADMIN :
					return IEmbeddableCartridge.PHPMYADMIN_34;
				case MYSQL :
					return IEmbeddableCartridge.MYSQL_51;
				case METRICS:
					return IEmbeddableCartridge.METRICS_01;
				case MONGODB:
					return IMoreEmbeddableCartridge.MONGODB_21;
				case ROCKMONGO :
					return IMoreEmbeddableCartridge.ROCKMONGO_11;
				case MONGODB_MMS_AGENT:
					return IMoreEmbeddableCartridge.MONGODB_MMS_AGENT_01;
				case POSTGRES:
					return IMoreEmbeddableCartridge.POSTGRES_84;
		
		}
		return null;
	}
}
